// Body reset
html {
  height: 100%;
  min-width: $screen-md-min;
}

body {
  height: 100%;
}

.page {
  position: relative;
  margin-left: $menubar-width;
  padding-top: $navbar-height;

  min-height: 100%;
  min-height: -webkit-calc(100% - 44px);
  min-height: calc(100% - 44px);

  transition: margin-left 300ms;

  .page-header {
    position: relative;
    padding: 20px 30px;
    h1,
    h2,
    h3 {
      margin-top: 0;
    }
    .breadcrumb {
      margin-bottom: 0;
    }
    .operate {
      position: absolute;
      right: 30px;
      bottom: 30px;

      .btn {
        margin-left: 15px;
      }
    }
  }
  .page-content {
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;

    .content-header {
      padding-bottom: 20px;
      @include clearfix;
      border-bottom: 1px solid $brand-default;
    }

    .content-search {
      position: relative;
      top: -80px;
      margin-left: -30px;
      margin-right: -30px;
      height: 0;
      input[type="text"] {
        position: relative;
        display: inline-block;
        height: 33px;
        line-height: 33px;
        vertical-align: middle;
        padding: 0 20px;
        border: 1px solid darken($brand-default, 2%);
        width: 180px;
      }
      .input-group {
        width: 260px;
        input[type="text"] {
          &:focus {
            outline: none;
          }
        }
        .input-group-btn:first-child {
          .btn {
            width: 100px;
            text-align: center;
            background: #fff;
            border: 1px solid darken($brand-default, 2%);
            border-radius: 33px 0 0 33px;

            cursor: auto;
          }
        }
        .input-group-btn:last-child {
          .btn {
            width: 40px;
            text-align: center;
            background: #fff;
            border: 1px solid darken($brand-default, 2%);
            border-left: none;
            border-radius: 0 33px 33px 0;
          }
        }
      }
      .iconnav {
        display: inline-block;
        vertical-align: middle;
        margin-right: 10px;
        color: $text-color;
        font-size: 20px;
      }
    }

    .content-container {
      position: relative;
      padding: 30px;
      background: #fff;
    }
  }
}

.loading {
  position: relative;
  min-height: 560px;
  &:after {
    content: '';
    display: block;
    height: 64px;
    width: 60px;
    position: absolute;
    left: 50%;
    top: 91px;
    z-index: 9999;
    margin-left: -30px;
    background: url("../image/loading.gif") no-repeat;
    background-size: cover;
  }
}

.alertify-logs {
  position: fixed;
  z-index: 1000;
  bottom: 16px;
  right: 16px;
  left: auto;
}

.menubar-fold .page {
  margin-left: $menubar-width-fold;
}

// 字体大小
.text-huge {
  font-size: 18px;
}

.text-big {
  font-size: 16px;
}

.text-small {
  font-size: 12px;
}

.text-xs {
  font-size: 10px;
}

.zoom {
  position: relative;
  display: inline-block;
  .zoom-container {
    position: absolute;
    z-index: 9999;
    top: -20px;
    left: 150%;
    left: calc(100% + 20px);

    padding: 10px;

    background: #fff;
    border: 1px solid $brand-default;
    border-radius: 3px;

    &::before {
      position: absolute;
      left: -12px;
      top: 40px;

      content: '';
      display: block;
      height: 0;
      width: 0;

      border-top: 10px solid transparent;
      border-bottom: 10px solid transparent;
      border-right: 12px solid #ddd;
      background: #fff;
    }
  }
  .zoom-img {
    height: 240px;
  }
}

.nameimg {
  display: inline-block;
  height: 50px;
  width: 50px;
  line-height: 50px;

  text-align: center;
  color: #ffffff;
  font-size: 32px;

  background: $brand-primary;
  border-radius: 100%;

  &.nameimg-sm {
    height: 30px;
    width: 30px;
    line-height: 30px;
    font-size: 14px;
  }
}

.margin-right-sm{
    margin-right: 15px;
}
.text-normal{
    font-weight: normal;
}